package com.jp.hilt;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.jp.hilt.inject_inter.IHttpRequestProcessor;

import javax.inject.Inject;

import dagger.hilt.android.AndroidEntryPoint;


@AndroidEntryPoint
public class MainActivity extends AppCompatActivity {

    private static final String TAG = MainActivity.class.getSimpleName();
    @Inject
    HttpObject httpObject;
    @Inject
    HttpObject httpObject1;

    @Inject
    IHttpRequestProcessor iHttpRequestProcessor;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.d(TAG, httpObject.hashCode() + "");
        Log.d(TAG, httpObject1.hashCode() + "");
        Log.d(TAG, iHttpRequestProcessor.hashCode() + "  onCreate: ");
    }

    public void skip(View view) {
        startActivity(new Intent(this, SecondActivity.class));
    }
}